package com.ruibang.glass.material.entity.bgjj;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 出库管理表
 * </p>
 *
 * @author mameng
 * @since 2024-04-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "GMaterialOutboundManagement对象", description = "办公家居出库管理表")
@TableName(value = "g_material_bgjj_outbound_management")
public class MaterialBGJJOutboundManagement extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "出库单ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "订单编号")
    private String orderNumber;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "出库用途")
    private String outboundPurpose;

    @ApiModelProperty(value = "制单人")
    private String preparer;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "物品名称")
    private String itemName;

    @ApiModelProperty(value = "条形码编号")
    private String barcodeNumber;

    @ApiModelProperty(value = "批次号")
    private String batchNumber;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "规格")
    private String specification;

    @ApiModelProperty(value = "库位")
    private String storageLocation;

    @ApiModelProperty(value = "序列号")
    private String serialNumber;

    @ApiModelProperty(value = "状态")
    private String status;


    @ApiModelProperty(value = "审批状态")
    private String approveStatus;

    @ApiModelProperty(value = "含量（万分比）")
    private BigDecimal contentPercentage;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime finishDate;




}
